package com.pactera.madp.cp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pactera.madp.cp.api.dto.emp.EmployeeTagChangeDTO;
import com.pactera.madp.cp.api.dto.emp.EmployeeTagCreateDTO;
import com.pactera.madp.cp.api.entity.employeeWechat.EmployeeTagEntity;
import com.pactera.madp.cp.api.vo.EmployeeTagVO;

import java.util.List;
import java.util.Map;

/**
 * (通讯录)标签(CpWorkEmployeeTag)表服务接口
 *
 * @author makejava
 * @since 2021-06-29 10:31:44
 */
public interface EmployeeTagService extends IService<EmployeeTagEntity> {

   Map<Object, Object> insert(EmployeeTagCreateDTO dto);

   List<EmployeeTagVO> list(String wxExternalUserid, String wxUserId);

   boolean delete(Integer id);

   void changeState(EmployeeTagChangeDTO dto);

   List<EmployeeTagVO> stateList(String wxExternalUserid, String wxUserId);

   boolean changeStateById(Integer id);

   Integer isDistinct(String wxExternalUserid, String wxUserId,String tagName);

   /**
    * 查询已使用个人标签
    *
    * @return
    */
   List<EmployeeTagVO> getAllList();

}
